package com.es.dao.impl;

import com.es.entity.CCBAccount;
import org.mybatis.spring.SqlSessionTemplate;

import java.util.List;

public class CCBAccountDaoImpl implements com.es.dao.CCBAccountDao {

    public SqlSessionTemplate getTemplate() {
        return template;
    }

    public void setTemplate(SqlSessionTemplate template) {
        this.template = template;
    }

    private SqlSessionTemplate template;

    @Override
    public List<CCBAccount> list() {
        return template.selectList("com.es.dao.CCBAccountMapper.list");
    }

    @Override
    public int save(CCBAccount ccbAccount) {
        int result = template.insert("com.es.dao.CCBAccountMapper.save",ccbAccount);
        int i = 10/0;

        return result;
    }


}
